
int main()
{
    int count = 0;
    while(count < 21)
    {
        ++count;
        if((count & 1) != 0)
        {
            /*do something when the counter is odd*/
        }
        else
        {
            /*do something when the counter is even*/
        }
    }
    
    return 0;
}
